package aug26;

import java.util.*;
import java.io.*;

public class ScannerFileEx {
	public static void main(String[] args){
		Scanner scan  = null;
		try{
			scan = new Scanner(new File("c:\\lam\\io\\scan.txt"));
			while(scan.hasNextDouble()){
				System.out.printf("scan double : %,.2f %n",scan.nextDouble());
			}
			scan.close();
		}catch(IOException ioe){
			ioe.printStackTrace();
		}finally{
			if(scan != null)
				scan.close();
		}
	}
}
